Microsoft Computer Vision APIs Distilled by Alessandro Del Sole

Microsoft Computer Vision APIs Distilled by Alessandro Del Sole

Author:Alessandro Del Sole
Language: eng
Format: epub
Publisher: Apress, Berkeley, CA


// You pass the JSON object above as the request body

using (var content =

new StringContent(imageUrl.ToString(), Encoding.UTF8, "application/json"))

{

// Add headers

content.Headers.ContentType = new MediaTypeHeaderValue("application/json");

// Call the endpoint

response = await client.PostAsync(uri, content);

// If successful,

if (response.StatusCode == HttpStatusCode.OK)

{

// Read the resulting HTTP content as a string

string jsonResponse = await response.Content.ReadAsStringAsync();

// Generate fully indented JSON markup from the original response

var parsedJson = JObject.Parse(jsonResponse);

Console.WriteLine(parsedJson.ToString());

}



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.